<!doctype html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml"
	xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
<meta name="layout" content="main" />
<title><g:message code="photo_admin.title" /></title>
</head>
<body>
	<div class="container">
				
	<sec:ifLoggedIn>
			<div class="row">
			
				<sec:ifAnyGranted roles="ROLE_PHOTOGRAPHER, ROLE_CLIENT, ROLE_USER, ROLE_ADMIN">
					<div class="homeMenuItemContainer span3">
						<div class="thumbnail">
							<a href="${createLink(controller: 'event', action: 'list')}">
								<img src="${resource(dir:'images/home', file: 'event.png')}"
								alt="">
							</a>
							<div class="caption">
								<h4>
									<a href="${createLink(controller: 'event', action: 'list')}">
										<g:message code="events" />
									</a>
								</h4>
							</div>
						</div>
					</div>
				</sec:ifAnyGranted>

				<sec:ifAnyGranted roles="ROLE_USER, ROLE_CLIENT">
					<div class="homeMenuItemContainer span3">
						<div class="thumbnail">
							<a
								href="${createLink(controller: 'shoppingCart', action: 'show')}">
								<img src="${resource(dir:'images/home', file: 'cart.png')}"
								alt="">
							</a>
							<div class="caption">
								<h4>
									<a
										href="${createLink(controller: 'shoppingCart', action: 'show')}">
										<g:message code="cart" />
									</a>
								</h4>
							</div>
						</div>
					</div>
				</sec:ifAnyGranted>

				<sec:ifAnyGranted roles="ROLE_PHOTOGRAPHER, ROLE_CLIENT, ROLE_USER, ROLE_ADMIN">
					<g:isPhotographerOrHasOrdered>
					<div class="homeMenuItemContainer span3">
						<div class="thumbnail">
							<a
								href="${createLink(controller: 'purchaseOrder', action: 'ordersMade')}">
								<img src="${resource(dir:'images/home', file: 'orders.png')}"
								alt="">
							</a>
							<div class="caption">
								<h4>
									<a
										href="${createLink(controller: 'purchaseOrder', action: 'ordersMade')}">
										<g:message code="ordersMade" />
									</a>
								</h4>
							</div>
						</div>
					</div>
					</g:isPhotographerOrHasOrdered>
				</sec:ifAnyGranted>
				
				<sec:ifAnyGranted roles="ROLE_PHOTOGRAPHER, ROLE_ADMIN">
					<div class="homeMenuItemContainer span3">
						<div class="thumbnail">
							<a
								href="${createLink(controller: 'purchaseOrder', action: 'ordersRecieved')}">
								<img src="${resource(dir:'images/home', file: 'orders.png')}"
								alt="">
							</a>
							<div class="caption">
								<h4>
									<a
										href="${createLink(controller: 'purchaseOrder', action: 'ordersRecieved')}">
										<g:message code="ordersRecieved" />
									</a>
								</h4>
							</div>
						</div>
					</div>
				</sec:ifAnyGranted>

				<sec:ifAnyGranted roles="ROLE_PHOTOGRAPHER, ROLE_CLIENT, ROLE_ADMIN">
					<div class="homeMenuItemContainer span3">
						<div class="thumbnail">
							<a
								href="${createLink(controller: 'eventAlbumToken', action: 'index')}">
								<img class="imageBorderLarge"
								src="${resource(dir:'images/home', file: 'share.png')}" alt="">
							</a>
							<div class="caption">
								<h4>
									<a
										href="${createLink(controller: 'eventAlbumToken', action: 'index')}">
										<g:message code="share" />
									</a>
								</h4>
							</div>
						</div>
					</div>
				</sec:ifAnyGranted>

				<sec:ifAnyGranted roles="ROLE_PHOTOGRAPHER, ROLE_CLIENT, ROLE_USER, ROLE_ADMIN">
					<div class="homeMenuItemContainer span3">
						<div class="thumbnail">
							<a href="#" data-toggle="modal" data-target="#addTokenModal">
								<img src="${resource(dir:'images/home', file: 'add.png')}"
								alt="">
							</a>
							<div class="caption">
								<h4>
									<a href="#" data-toggle="modal" data-target="#addTokenModal"><g:message
											code="add.events" /> </a>
								</h4>
							</div>
						</div>
					</div>
				</sec:ifAnyGranted>

				<!-- 
				<sec:ifAnyGranted roles="ROLE_PHOTOGRAPHER">
					<div class="homeMenuItemContainer span3">
						<div class="thumbnail">
							<a href="#"> <img
								src="${resource(dir:'images/home', file: 'storage.png')}" alt="">
							</a>
							<div class="caption">
								<h4>
									<a href="#"> <g:message code="storage" />
									</a>
								</h4>
							</div>
						</div>
					</div>
				</sec:ifAnyGranted>
				 -->

				<sec:ifAnyGranted roles="ROLE_PHOTOGRAPHER, ROLE_ADMIN">
					<div class="homeMenuItemContainer span3">
						<div class="thumbnail">
							<a href="${createLink(controller: 'statistics', action: 'show')}"> <img
								src="${resource(dir:'images/home', file: 'statistics.png')}"
								alt="">
							</a>
							<div class="caption">
								<h4>
									<a href="${createLink(controller: 'statistics', action: 'show')}"> <g:message code="statistics" />
									</a>
								</h4>
							</div>
						</div>
					</div>
				</sec:ifAnyGranted>
<!-- 
				<sec:ifAnyGranted roles="ROLE_PHOTOGRAPHER">
					<div class="homeMenuItemContainer span3">
						<div class="thumbnail">
							<a href="#"> <img
								src="${resource(dir:'images/home', file: 'portfolio.png')}"
								alt="">
							</a>
							<div class="caption">
								<h4>
									<a href="#"> <g:message code="portfolio" />
									</a>
								</h4>
							</div>
						</div>
					</div>
				</sec:ifAnyGranted>
				-->
<!-- 
				<sec:ifAnyGranted roles="ROLE_PHOTOGRAPHER">
					<div class="homeMenuItemContainer span3">
						<div class="thumbnail">
							<a href="#"> <img
								src="${resource(dir:'images/home', file: 'prints.png')}" alt="">
							</a>
							<div class="caption">
								<h4>
									<a href="#"> <g:message code="prints" />
									</a>
								</h4>
							</div>
						</div>
					</div>
				</sec:ifAnyGranted>
				-->

				<sec:ifAnyGranted roles="ROLE_PHOTOGRAPHER, ROLE_CLIENT, ROLE_USER, ROLE_ADMIN">
					<div class="homeMenuItemContainer span3">
						<div class="thumbnail">
							<a href="${createLink(controller: 'notification', action: 'index')}"> <img
								src="${resource(dir:'images/home', file: 'notifications.png')}"
								alt="">
							</a>
							<div class="caption">
								<h4>
									<a href="${createLink(controller: 'notification', action: 'index')}"> <g:message code="notifications" />
									</a>
								</h4>
							</div>
						</div>
					</div>
				</sec:ifAnyGranted>
				
				<sec:ifAnyGranted roles="ROLE_PHOTOGRAPHER, ROLE_CLIENT, ROLE_USER, ROLE_ADMIN">
					<div class="homeMenuItemContainer span3">
						<div class="thumbnail">
							<a href="${createLink(controller: 'message', action: 'index')}"> <img
								src="${resource(dir:'images/home', file: 'messages.png')}"
								alt="">
							</a>
							<div class="caption">
								<h4>
									<a href="${createLink(controller: 'message', action: 'index')}"> <g:message code="messages" />
									</a>
								</h4>
							</div>
						</div>
					</div>
				</sec:ifAnyGranted>
				
				<sec:ifAnyGranted roles="ROLE_PHOTOGRAPHER, ROLE_CLIENT, ROLE_USER, ROLE_ADMIN">
					<div class="homeMenuItemContainer span3">
						<div class="thumbnail">
							<a href="${createLink(controller: 'user', action: 'show')}"> <img
								src="${resource(dir:'images/home', file: 'profile.png')}" alt="">
							</a>
							<div class="caption">
								<h4>
									<a href="${createLink(controller: 'user', action: 'show')}">
										<g:message code="profile" />
									</a>
								</h4>
							</div>
						</div>
					</div>
				</sec:ifAnyGranted>

<!-- 
				<sec:ifAnyGranted roles="ROLE_PHOTOGRAPHER">
					<div class="homeMenuItemContainer span3">
						<div class="thumbnail">
							<a
								href="${createLink(controller: 'photographerConfiguration', action: 'configuration')}">
								<img src="${resource(dir:'images/home', file: 'config.png')}"
								alt="">
							</a>
							<div class="caption">
								<h4>
									<a
										href="${createLink(controller: 'photographerConfiguration', action: 'configuration')}">
										<g:message code="config" />
									</a>
								</h4>
							</div>
						</div>
					</div>
				</sec:ifAnyGranted> -->
			</div>
		</sec:ifLoggedIn>

		<sec:ifNotLoggedIn>	
		 
			<g:render template="aboutContent" />		
			<div class="separator"></div>

		</sec:ifNotLoggedIn>
	</div>
	
	<script type="text/javascript">
	    jQuery(document).ready(function ($) {
	        $('#tabs').tab();
	    });
	</script>  
</body>
</html>
